package com.qinggeng.project.api.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author 吴鹏飞
 * @date 2020/10/29
 */
@Data
public class UserBeatDto {
    //用户捶一捶记录id
    private Long id;
    //用户id
    private Long userId;
    //订单id
    private Long ordersId;
    //商品id
    private Long goodsId;
    //商品名称
    private String goodsName;
    //商品主图
    private String goodsImg;
    //所需捶次数
    private Integer beatSum;
    //是否捶成 1=ok 0=no
    private String beatInto;
    //是否领取
    private String receive;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    //过期时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beatOutTime;
    //领取时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;

    //beatIndex 1=用户捶一捶进行中或完成但未领取商品
    private String beatIndex;

    //是否捶过第一捶
    private String firstBeat;

    //剩余商品捶成比例
    private String percent;

    //剩余总金额
    private String remainAmount;

    //剩余次数
    private int count;

    //已捶总金额
    private String totalBeatPrice;

    //到期时间
    private String date;

}
